package com.szholly.pro.watergas_server.ps.data;

import java.util.HashMap;

import com.szholly.data.general.metadata.table.DefulatDomainTable;import org.springframework.stereotype.Component;import com.szholly.data.general.Field;import com.szholly.data.general.InterceptorTableBase;import com.szholly.data.general.metadata.IBaseTable;import com.szholly.utils.spring.SpringBeanFactory;import org.springframework.stereotype.Component;import com.szholly.data.general.GlobalDataType;import com.szholly.data.general.RowBase;import com.szholly.data.general.metadata.table.DefulatDomainTable;

/**
 * TaskQueryDic
 */
@Component("TaskQueryDic")
public class TaskQueryDictTable extends InterceptorTableBase  implements IBaseTable{

	public final static String TABLE_NAME = "TASKQUERYDIC";
	
	/**
	 * single ref
	 */
	public static TaskQueryDictTable getSingleRef() {
		return (TaskQueryDictTable) SpringBeanFactory.getBean("TaskQueryDic");
	}

	@Override
	public String getMetadataTableName() {
		return TABLE_NAME;
	}

	@Override
	public String getMetadataTableAliasName() {
		return "TaskQueryDic";
	}

	private HashMap<String, Field> fields;

	@Override
	protected HashMap<String, Field> fields() {
		if (fields == null) {
			fields = new HashMap<String, Field>();

			Field itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_StationOnoff);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("STATION_ONOFF");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("STATION_ONOFF");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			 itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_TaskStatus);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("TASK_STATUS");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("TASK_STATUS");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_DataShow);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("DATA_SHOW");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("DATA_SHOW");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_DataType);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("DATA_TYPE");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("DATA_TYPE");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_DataReason);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("DATA_REASON");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("DATA_ANORMAL");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_ExceptoinStatus);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("EXCEPTION_STATUS");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("OPERATION_EXCEPTION_STATUS");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_DEVICE_STATUS);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("DEVICE_STATUS");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("MONITOR_EQUIPMENT_STATUS");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_FAILURE_REASON);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("FAILURE_REASON");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("OPERATION_FAILURE_REASON");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_REPAIR_RESULT);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("REPAIR_RESULT");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("OPERATION_REPAIR_RESULT");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_PARMNAME);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("PARMNAME");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("MONITOR_PARAM");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_TEST_PROJECT);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("TEST_PROJECT");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("MONITOR_PARAM");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_CONCLUSION);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("CONCLUSION");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("OPERATION_COMPARISON_CONCLUSION");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_MEASURE_ITEM);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("MEASURE_ITEM");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("MONITOR_PARAM");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_MEASURE_CONCLUSION);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("MEASURE_CONCLUSION");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("OPERATION_COMPARISON_CONCLUSION");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_DEFAULT_CYCLE);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("DEFAULT_CYCLE");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("OPERATION_CYCLE_TIME");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_DEFAULT_TOLERANCE);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("DEFAULT_TOLERANCE");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("OPERATION_CYCLE_TIME");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_NAME);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("NAME");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("MONITOR_PARAM");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_PARM_ID);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("PARM_ID");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("MONITOR_PARAM");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_MATERIAL_NAME);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("MATERIAL_NAME");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("OPERATION_MATERIAL_NAME");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_EXCEPTION_REASON);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("EXCEPTION_REASON");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("EXCEPTION_REASON");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_MONITOR_PARM);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("MONITOR_PARM");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("MONITOR_PARAM");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
			itemField = new Field();
			itemField.setFieldName(TaskQueryDictRow.FIELD_ITERM_PARAM);
			itemField.setDataType(GlobalDataType.String);
			itemField.setFieldID(0);
			itemField.setFieldAliasName("ITERM_PARAM");
			itemField.setCodeTablePK(DefulatDomainTable.TABLE_NAME);
			itemField.setCodeDomainName("检测设备代号");
			itemField.setCanShow(false);
			fields.put(itemField.getFieldName().toUpperCase().trim(), itemField);
			
		}
		return fields;
	}

	@Override
	public String getTableGroup() {
		return "TaskQueryDic";
	}
}